function validateSubmit() {
    var result = false;
    var obj = document.getElementById("pagetitle");
    
    if (obj != null && obj.value != null && obj.value != "") {
        result = true;
    }
    
    if (result == false) {
        alert("Please input the page title.");
    }
    
    return result;
}